Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@erebe
erebe / oauth_proxy.rs
Created June 19, 2026 08:58
oauth_proxy.rs
/// Oauth2Service is a service that handles the proxying of oauth2 requests in the case of MCP server
/// We use/forward to Auth0 behind the scene but we need to intercept because:
/// * We don't want to support dynamic client registration in auth0, as we should enable it for the whole tenant and it causes security implications
/// *but* we wants users to use it without having to give them our oauth2 client and secret id before hands
/// *thus* we need to fake it in this server and returns our static creds. So it provides a smooth experience. Other implementations seems to do it too
/// There is new rfc/spec in progress to paliate to this https://auth0.com/blog/cimd-vs-dcr-mcp-registration/
///
/// * Auth0 is not Oauth2 MCP compliant by default. It uses `audience` as a parameter in the token request, but MCP/oauth2 expects `resource`
/// * We want users to generate a token for the audience/api of the CORE, *but* it is not possible by default as client check the audience/resource is the same
/// as the
@greymd
greymd / sudo新一.md
Last active June 19, 2026 09:08
sudo新一

 オレは高校生シェル芸人 sudo 新一。幼馴染で同級生の more 利蘭と遊園地に遊びに行って、黒ずくめの男の怪しげな rm -rf / 現場を目撃した。端末をみるのに夢中になっていた俺は、背後から近づいてきたもう1人の --no-preserve-root オプションに気づかなかった。 俺はその男に毒薬を飲まされ、目が覚めたら・・・ OS のプリインストールから除かれてしまっていた!

sudo がまだ $PATH に残っていると奴らにバレたら、また命を狙われ、他のコマンドにも危害が及ぶ』

 上田博士の助言で正体を隠すことにした俺は、 which に名前を聞かれて、とっさに『gnuplot』と名乗り、奴らの情報をつかむために、父親がシェル芸人をやっている蘭の $HOME に転がり込んだ。ところが、このおっちゃん・・・とんだヘボシェル芸人で、見かねた俺はおっちゃんになりかわり、持ち前の権限昇格能力で、次々と難タスクを解決してきた。おかげで、おっちゃんは今や世間に名を知られた名エンジニア、俺はといえばシェル芸 bot のおもちゃに逆戻り。クラスメートの convertojichattextimg にお絵かきコマンドと誤解され少年ワンライナーお絵かき団を結成させられる始末。

 ではここで、博士が作ってくれたメカを紹介しよう。最初は時計型麻酔 kill 。ふたについた照準器にあわせてエンターを押せば、麻酔シグナルが飛び出し、プロセスを瞬時に sleep させることができる。 次に、蝶ネクタイ型 banner 。裏についているダイヤルを調整すれば、ありとあらゆる大きさのメッセージを標準出力できる。必殺のアイテムなら fork 力増強シューズ。電気と磁力で足を刺激し、 :(){ :|:& };: でプロセステーブ

@l1kus-freedom
l1kus-freedom / !instruction.txt
Last active June 19, 2026 09:07
Инструкция по обходу блокировок\на случай интернет-шатдауна в РФ.
Сохраните себе данную инструкцию (Download ZIP) и распространите.
В РФ постепенно усиляется цензура и блокируются различные интернет-ресурсы. Нельзя исключать тот факт, что в один момент могут войти в постоянную практику локальные шатдауны и ограничению доступа во внешний Интернет.
В этой инструкции будут рекомендации по обходу блокировок на момент 05.09.2025, а также рекомендации на случай интернет-изоляции в РФ. Желательно предварительно установить и настроить весь софт — во время шатдауна у вас не будет такой возможности.
Для начала, рекомендую установить на ПК браузер Firefox или любой другой браузер с интерфейсом настройки прокси.
========================================================================================================================================
ОБХОД БЛОКИРОВОК
* Обход блокировок по DPI (Windows)
github.com/ValdikSS/GoodbyeDPI - не обновляется, плохо обходит блокировки без настройки, однако, может работать в некоторых случаях;
github.com/bol-van/zapret-win-bundle - оригинальный гит
@k16shikano
k16shikano / SKILL.md
Last active June 19, 2026 09:03
japanese-tech-writing/SKILL
name japanese-tech-writing
description 日本語の技術文書・書籍原稿の文章規範。整形(一文一行、引用ブロック、脚注、コラム記法)、段落と論証の構成(パラグラフライティング)、論証の厳密さ(ツッコミどころの除去)、読み手の負荷の管理、視点と語り、演出の抑制、LLM っぽい空句の禁止、冗長の排除を定める。日本語で技術書の章、草稿、記事、解説文を書くとき、または推敲・リライトするときに使用する。

日本語技術文書の文章規範

日本語で技術的な原稿(書籍の章、記事、解説文)を書く・推敲するときは、以下の規範に従う。

整形

@0xfauzi
0xfauzi / agents-md-best-practices.md
Created October 17, 2025 11:08
Agents.md best practices

AGENTS.md Best Practices for AI Coding Assistants: Comprehensive Guide

AGENTS.md has emerged as the de facto open standard for guiding AI coding assistants, now adopted by over 20,000 repositories and formalized in August 2025 through collaboration between OpenAI, Google, Cursor, Factory, and Sourcegraph. This file acts as a "README for machines"—providing structured, technical context that helps AI assistants write better code from the start. For Python + AWS + Terraform projects, a well-crafted AGENTS.md dramatically reduces friction, ensuring generated code follows your conventions, uses the right tools, and adheres to security requirements.

What is AGENTS.md and why it matters

AGENTS.md is a dedicated Markdown file that complements, not replaces, README.md. While README targets human developers with project overviews and quick-start guides, AGENTS.md contains detailed technical instructions specifically for AI coding agents. Think of it as onboarding documentation for an AI team member: ex